//
//  UIView+RSRect.h
//  RSTools
//
//  Created by thinkjoy on 2017/9/12.
//  Copyright © 2017年 杜瑞胜. All rights reserved.
//  快速读取|设置View Rect相关的属性

#import <UIKit/UIKit.h>


@interface UIView (RSRect)

@property (nonatomic) CGPoint viewOrigin;
@property (nonatomic) CGSize  viewSize;

@property (nonatomic) CGFloat minX;
@property (nonatomic) CGFloat minY;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;

/**
 设置该值，会修改View的width属性
 */
@property (nonatomic) CGFloat maxX;
/**
 设置该值，会修改View的height属性
 */
@property (nonatomic) CGFloat maxY;


@property (nonatomic) CGFloat top;

/**
 设置该值，会修改View的width属性
 */
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat left;
/**
 设置该值，会修改View的height属性
 */
@property (nonatomic) CGFloat right;

@property (nonatomic) CGFloat centerX;
@property (nonatomic) CGFloat centerY;

@end
